﻿namespace net_work.Data.Entity.Sys;

/// <summary>
/// 用户实体类
/// </summary>
public class User : BaseEntity
{
    /// <summary>
    /// 用户账号
    /// </summary>
    public required string UserAccount { get; set; }

    /// <summary>
    /// 密码（加密）
    /// </summary>
    public required string UserPassword { get; set; }

    /// <summary>
    /// 邮箱（允许空）
    /// </summary>
    public string? UserEmail { get; set; }

    /// <summary>
    /// 联系电话
    /// </summary>
    public required string UserPhone { get; set; }

    /// <summary>
    /// 用户角色
    /// </summary>
    public required string UserRole { get; set; }

    /// <summary>
    /// 个人ID（外键）
    /// </summary>
    public required long PsnId { get; set; }
}